package cn.joeg.dp.singleton.seriable;

import java.io.Serializable;

public class Seriable implements Serializable{


    private static final long serialVersionUID = 446377408997361649L;

    public final static Seriable INSTANCE  = new Seriable();

    private Seriable() {
    }

    public static Seriable getInstance(){
        return INSTANCE;
    }

    //解决反序列化后破坏单例的问题
    private Object readResolve(){
        return INSTANCE;
    }
}
